package com.akaovi.sch.pojo;

/**
 * @author akaovi
 * @version 1.0
 * @description
 * @date 2022/11/7 14:32
 * @since 2022/11/7 14:32
 */
public class Teacher extends Person implements PersonFunc {

    public Teacher() {
    }

    public Teacher(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.printf("教师%s去教工餐厅吃饭！\n", this.getName());
    }

    @Override
    public void sleep() {
        System.out.printf("教师%s回学校公寓睡觉！\n", this.getName());
    }
}
